<html>
<head>
<title><?php print(Rd_Registry::get('instanceName')); ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<?php 
	$use960css = false;
	$useJQueryUi = false;
	if(method_exists($mgr, 'hasOption')){
		if( $mgr->hasOption('960css')) { 
			$use960css = true;
?>
<link rel="stylesheet" href="/website/960/code/css/960_custom.css" type="text/css" />
<link rel="stylesheet" href="/website/960/code/css/reset.css" type="text/css" />
<?php
		}
}
?>
<link rel="stylesheet" href="css/thickbox.css" type="text/css" media="screen" />

<link rel="stylesheet" href="<?php print($_SESSION['css']); ?>" type="text/css">

<?php if ($use960css) { ?>
<link rel="stylesheet" href="public/css/960fix.css" type="text/css" />
<?php } ?>
<script language="JavaScript1.2" src="secure/javascript/jsFunctions.js"></script>
<script language="JavaScript1.2" src="secure/javascript/prototype.js"></script>
<script language="JavaScript1.2" src="secure/javascript/ajax_transport.js"></script>
<script language="JavaScript1.2" src="secure/javascript/basicAJAX.js"></script>
<script type="text/javascript" src="public/javascript/jquery-1.6.4.min.js"></script>
<script>jQuery.noConflict();</script>
<script type="text/javascript" src="secure/javascript/thickbox-noconflict.js"></script>
<?php
	if(method_exists($mgr, 'hasOption')){
		if( $mgr->hasOption('jQueryUi')) {
			$useJQueryUi = true;
?>
<link rel="stylesheet" href="public/css/jquery_ui_blitzer/main.css" type="text/css" />
<script language="javascript" src="public/javascript/jquery.ui.1-8-1min.js"></script>
<?php
		}
	}
?>
<!-- start JSCalendar files -->
<?php $calendar->load_files(); //load JSCalendar JS files $calendar is globally defined in index.php?>
<!-- end JSCalendar files -->
<?php
	if(method_exists($mgr, 'autoCss')){
		$mgr->autoCss();
	}
?>
</head>

<body onload="var elmt = (document.getElementById('searchTermFocus') || document.getElementById('search_inst')); if(elmt) { elmt.focus(); } else { focusOnForm(); }">

<!--help sidebar-->
<?php include('secure/html/help_sidebar.inc.html'); ?>
<?php include("secure/html/banner.inc.html"); ?>
<div id="container" class="helpOff">
  	<!--banner.inc-->
	
	<div id="Navigation">
		<!--func_nav-->
		<?php include("secure/html/func_nav.inc.html"); ?>
		<!--main_nav.inc-->
    	<?php include("secure/html/main_nav.inc.html"); ?>
		<!--sub_nav.inc.html-->
		<?php include("secure/html/sub_nav.inc.html"); ?>
		<div style="clear:both;"></div>
	</div>	
	<!--locationIndicator.inc-->
  	<?php include("secure/html/locationIndicator.inc.html"); ?>
  
  	<?php
	  	//Display NoScript error if greater than proxy and javascript is not enabled
	  	if ($u->getRole() >= $g_permission['proxy'])
	  		echo "<noscript><div id=\"noJavaAlert\" class=\"failedText\">$g_no_javascript_msg</div></noscript>\n";
	?>
    
    <?php
    	if (!is_null($news = news::getNews($u->getRole())))
    	{    		
    		echo "<div id=\"displayMsg\">";
    		for($i=0; $i < count($news); $i++)
    		{
    			echo "<div class=\"". $news[$i]['class'] ."\">" . $news[$i]['text'] . "</div>\n";
    		}
    		echo "</div>";
    	}        	
    ?>
	 	 
    <div id="alertMsg" class="failedText">
        <?php if (isset($alertMsg)) echo $alertMsg; ?>
    </div>
   	<div id="content" <?php if($use960css){ print('class="container_16"');} ?>>
		<?php $mgr->display(); ?>
		<br class="clear"/>
	</div>
 	<?php include("secure/html/footer.inc.html"); ?>
</div>

</body>
</html>
